<?php

	$listid 		= gpc_getStringArray("listid");
	$liststatus 	= gpc_getStringArray("liststatus");

	$countlist = count($listid);

	for ($i = 0; $i < $countlist ; $i ++)
	{
		$sql_update = "UPDATE  tblaccount SET
					  iStatus	 = '$liststatus[$i]'
					  WHERE  iAccountId = '$listid[$i]'";

		$dbsql->query($sql_update);
	}

	$cActions = "Change Status Account";
	Insert_Tracking($cActions);
    $pagetr = empty($pagetr) ? "page=$page" : $pagetr;
	page_transfer("Update Status Success !",$pagetr);
	exit();
?>
